//
//  WLFileTransportHeadModel.h
//  WanLian
//
//  Created by 123456 on 2019/1/4.
//  Copyright © 2019 wanlian. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WLFileRequest.h"
NS_ASSUME_NONNULL_BEGIN

@interface WLFileTransportHeadModel : NSObject

@property (nonatomic, copy) NSString *fileName;
@property (nonatomic, strong) NSURL *fileURL;
@property (nonatomic, strong) NSURL *mediaLocalURL;
@property (nonatomic, assign) int freeid;
@property (nonatomic, assign) int blockIndex;
@property (nonatomic, assign) long bs;
@property (nonatomic, assign) long blockSizeUnit;
@property (nonatomic, assign) long currentSize;
@property (nonatomic, assign) long sendedSize;
@property (nonatomic, assign) long offset;
/* 块头部信息 **/
//@property (nonatomic, assign) NSUInteger headLen;
//@property (nonatomic, assign) int sendedHeadLen;
//@property (nonatomic, strong) NSData *headData;
/* 块内容信息 **/
@property (nonatomic, assign) int currentSendIndex;
@property (nonatomic, assign) int totalNum;
@property (nonatomic, assign) long size;
@property (nonatomic, assign) long sendSizeUnit;

+ (instancetype)createWithTaskModel:(WLFileRequest *)model index:(int)index sourceId:(int)sourceId;
@end

NS_ASSUME_NONNULL_END
